package com.hdcircles.autoform.ui.label.activity;

import android.content.Intent;
import android.view.MotionEvent;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.hdcircles.autoform.R;
import com.hdcircles.autoform.base.SimpleActivity;

import butterknife.BindView;

/**
 * Created by hdcircles on 2016/12/6.
 */

public class ImageActivity extends SimpleActivity {

    @BindView(R.id.image)
    ImageView image;


    @Override
    protected int getLayout() {
        return R.layout.activity_image_view;
    }

    @Override
    protected void initEventAndData() {
        Intent intent=getIntent();
        String imageUrl=intent.getStringExtra("imageUrl");
        Glide.with(this)
                .load(imageUrl)
                .into(image);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        finishAfterTransition();
//        finish();
        return super.onTouchEvent(event);
    }
}
